import {createSlice} from '@reduxjs/toolkit'

const loginStore = createSlice({
   name:'login',
   initialState:{
    isRemeber: false
   },
   reducers:{
    setIsRemeber(state,action){
      state.isRemeber = action.payload
    }
   }
})

const {setIsRemeber} = loginStore.actions
const loginReducer = loginStore.reducer

export {setIsRemeber} 
export default loginReducer